package ik.xcj.hostpital.manage.arithmetic;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Slf4j
public class MD5Impl implements MD5 {

    @Override
    public String converMD5(String instr) {
        char[] a = instr.toCharArray();
        for(int i = 0;i< a.length-1;i++){
            a[i] = (char)(a[i] ^ 't');
        }
        String s = new String(a);
        return s;
    }
}
